package com.factory._05builder;

/**
 * @author Qinye
 * @date 2023/8/11 22:27
 */
public  abstract class Director {
    private ConcreteBuilder builder;
    /**
     * 产品构造方法，负责调用各个零件构造方法
     */
    public void construct(){
        builder.buildPart1();
        builder.buildPart2();
        Product product = builder.receiveResult();
    }
}
